<?php

namespace app\wachat\controller;

class Product extends Base
{

    protected $beforeActionList = [
        'right' => ['only' => 'index,detailed'],
//        'images' => ['only' => 'detailed'],
    ];


    /**
     * 更多图片
     */
    public function images()
    {

        $images = model('ProductImages')->where('pid', $this->request->param('id'))->field('image')->select();
        $this->resulr=[
            'image'=>$images,
        ];
        echo json_encode($this->resulr);
        $this->assign([
            'images' => $images,
        ]);
    }


}
